package com.xc.demo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;


@Data
@TableName(value = "employee")
@AllArgsConstructor //全参构造函数
@NoArgsConstructor  //无参构造函数
public class Employee implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    private String username;

    private String name;

//    @JsonIgnore
    private String password;

    private String phone;

    private Integer status;

    private String address;

    @TableField("avatar_url")
    private String avatarUrl;

    @TableField(exist = false)
    private String token;

    @TableField(exist = false)
    private List<Menu> menus;

    private String role;

    private String idcard;

    private String invitepass;

    private String email;

    @TableField("household_img")
    private String householdImg;

    @TableField("sale_img")
    private String saleImg;









//    @TableField(fill = FieldFill.INSERT)
//    private LocalDateTime createTime;
//
//    @TableField(fill = FieldFill.INSERT_UPDATE)
//    private LocalDateTime updateTime;



}

